import request from "@/utils/request";

// 查询冷链车列表
export function listLogistics(query) {
  return request({
    url: "/coldlogistics/logistics/list",
    method: "get",
    params: query,
  });
}

// 查询冷链车详细
export function getLogistics(id) {
  return request({
    url: "/coldlogistics/logistics/" + id,
    method: "get",
  });
}

// 新增冷链车
export function addLogistics(data) {
  return request({
    url: "/coldlogistics/logistics",
    method: "post",
    data: data,
  });
}

// 修改冷链车
export function updateLogistics(data) {
  return request({
    url: "/coldlogistics/logistics",
    method: "put",
    data: data,
  });
}

// 删除冷链车
export function delLogistics(id) {
  return request({
    url: "/coldlogistics/logistics/" + id,
    method: "delete",
  });
}
